package com.bdqn.qnnews.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-26
 * @description APP文章作者信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("ap_author")
@Schema(name = "ApAuthor 对象", description = "APP文章作者信息表 实体类")
public class ApAuthor {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "作者名称")
    private String name;

    @Schema(description = "0 爬取数据 1 签约合作商 2 平台自媒体人	            ")
    private Byte type;

    @Schema(description = "社交账号ID")
    private Integer userId;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "自媒体账号")
    private Integer wmUserId;


}
